#include "caculator.H"
using namespace std;
int main(int argc, char const *argv[])
{
    cout << "Enter the expression, q to quit" << endl;
    caculator casio;
    string infix;
    vector<string> postfix;
    double result = 0;
    while (1)
    {
        infix = "";
        std::getline(cin, infix);
        if (infix == "q")
            break;
        if(casio.solve(infix,result))
            cout << result <<'\n';
    }
    return 0;
}
